package yijy.testclone;

/**
 * Created by yijy on 2017/9/8.
 */
public class TestCloneMain {
    public static void main(String[] args) {
        User user = new User();
        user.setAge(1);
        user.setUsername("sdjflsd;");
        User user1 =user;
        System.out.println(user1.toString()+"-------"+user.toString());
        user1.setAge(2);
        System.out.println(user1.toString()+"-------"+user.toString());

    }
}
